package com.sc.nft.feign;

import com.sc.nft.dto.HwCheckDTO;
import com.sc.nft.sup.Result;
import com.sc.nft.vo.HwCheckVO;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import javax.validation.Valid;

/**
 * 华为云feign聚合
 */
@FeignClient(name = "meta-open-cloud",path = "/hwCloud/rpc")
public interface HwCloudFeign {

    @ApiOperation(value = "人脸核身", notes = "人脸核身", httpMethod = "POST", produces = MediaType.APPLICATION_JSON_VALUE)
    @PostMapping(value = "/checkUserReal", produces = MediaType.APPLICATION_JSON_VALUE)
    Result<HwCheckVO> checkUserReal(@Valid @RequestBody HwCheckDTO hwCheckDTO) ;
}
